package xt4Spot

import "os"

var (
	baseURL string
)

func init() {

	env := os.Getenv("APIENV")
	switch env {
	case "pro":
		baseURL = "wss://stream.xt.com/public"
	case "dev":
		baseURL = "wss://stream.xt-uat.com/public"
	case "test":
		baseURL = "ws://stream.xt-uat.com/public"
	default:
		baseURL = "ws://stream.xt-uat.com/public"
	}

}
